package com.wang.example.netty.handler.client;

import com.wang.basic.netty.handler.Message;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

public class EchoClientInHandler2 extends SimpleChannelInboundHandler<Message> {
    /**
     * 客户端读取到数据
     * @param ctx
     * @param msg
     * @throws Exception
     */
    @Override
    public void channelRead0(ChannelHandlerContext ctx, Message msg)
            throws Exception {
        System.out.println("EchoClientInHandler2 handler:" + msg);
    }
}
